package com.fulihui.information.biz.content;

import com.fulihui.information.dto.InfoContentCommentsDTO;
import com.fulihui.information.request.ContentCommentsCreateRequest;
import com.fulihui.information.request.ContentCommentsQueryRequest;
import com.fulihui.information.request.ContentCommentsRequest;
import com.fulihui.information.result.ContentCommentsResponse;

import java.util.List;

/**
 * Created by LM on 2017/4/9.
 */
public interface ContentCommentsBizManager {

    String createComments(ContentCommentsCreateRequest request);

    void praiseTotal(String commentsId, String userId, String contentId);

    void replyTotal(String commentsId);

    List<InfoContentCommentsDTO> queryPage(ContentCommentsQueryRequest request);

    ContentCommentsResponse<InfoContentCommentsDTO> queryPageExt(ContentCommentsQueryRequest request,
                                                                 boolean onOff);

    long queryPageCount(ContentCommentsQueryRequest request);

    boolean removeContentComments(ContentCommentsRequest request);

    long queryPageCountExt(ContentCommentsQueryRequest request, boolean onOff);

    InfoContentCommentsDTO queryByPK(ContentCommentsRequest request);

    List<InfoContentCommentsDTO> queryPageUserComments(ContentCommentsQueryRequest request);

    String getContentTitle(String contentId, String contentTitle);

}
